import Vue from 'vue/dist/vue.esm.js';  // node_modules 直接导入名字
// import 'lib-flexible';
import 'normalize.css';
import request from './http';
import './index.css';
import appHeader from './components/appHeader.vue'
import appBody from './components/appBody.vue'
import appFooter from './components/appFooter.vue'
import bus from './eventBus'
Vue.prototype.$bus = bus;
new Vue({
    el: '#app',
    data: {
        person:[]
    },
    computed: {},
    methods: {

        fn(){
            alert('事件修饰符')

        }
    },
    filters: {},
    components: {appHeader,appBody,appFooter},
    created(){
            request.getUser()
                .then(res => {
                    this.person = res.data.data;
                })
                .catch(err => {
                    console.log(err);
                })

    }
});